package sketch.semantics;

import java.util.Vector;

import sketch.doc.Sketch;

public class Concept {

	private Sketch sketch;

	private int shapeId;

	private Vector<Relation> relations;

	public Concept() {
		relations = new Vector<Relation>();
	}

	public Sketch getSketch() {
		return sketch;
	}

	public int getShapeId() {
		return shapeId;
	}

	public void setShapeId(int id) {
		shapeId = id;
	}

	public Vector<Relation> getRelations() {
		return relations;
	}

	public void addRelation(Relation relation) {
		getRelations().add(relation);
	}

	public String toString() {
		return  getName() + "(shape:" + getShapeId() + ")";
	}

	public String getName() {
		return this.getClass().getSimpleName();
	}
}
